package com.project.mapper;

import com.github.pagehelper.PageInfo;
import com.project.bean.LogBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ILogMapper {
    @Insert("insert into t_log(l_date,l_info)values(#{time},#{info})")
    void add(LogBean log);

    List<LogBean> findByDate(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);
}
